<?php
/**
 * ExtTabPanel class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtTabPanel extends ExtTabPanelBase
{
    /**
     * Gets the value of ExtJS activeTab property
     * @return String/Number 
     */
    public function getActiveTab()
    {
    	return $this->getConfig("activetab");
    }

    /**
     * Sets the value of ExtJS activeTab property
     * @param String/Number $value 
     */
    public function setActiveTab($value)
    {
    	$this->setConfig("activetab",$value);
    }

    /**
     * Gets the value of ExtJS animScroll property
     * @return Boolean 
     */
    public function getAnimScroll()
    {
    	return $this->getConfig("animscroll");
    }

    /**
     * Sets the value of ExtJS animScroll property
     * @param Boolean $value 
     */
    public function setAnimScroll($value)
    {
    	$this->setConfig("animscroll",$value);
    }

    /**
     * Gets the value of ExtJS autoTabSelector property
     * @return String 
     */
    public function getAutoTabSelector()
    {
    	return $this->getConfig("autotabselector");
    }

    /**
     * Sets the value of ExtJS autoTabSelector property
     * @param String $value 
     */
    public function setAutoTabSelector($value)
    {
    	$this->setConfig("autotabselector",$value);
    }

    /**
     * Gets the value of ExtJS autoTabs property
     * @return Boolean 
     */
    public function getAutoTabs()
    {
    	return $this->getConfig("autotabs");
    }

    /**
     * Sets the value of ExtJS autoTabs property
     * @param Boolean $value 
     */
    public function setAutoTabs($value)
    {
    	$this->setConfig("autotabs",$value);
    }

    /**
     * Gets the value of ExtJS baseCls property
     * @return String 
     */
    public function getBaseCls()
    {
    	return $this->getConfig("basecls");
    }

    /**
     * Sets the value of ExtJS baseCls property
     * @param String $value 
     */
    public function setBaseCls($value)
    {
    	$this->setConfig("basecls",$value);
    }

    /**
     * Gets the value of ExtJS deferredRender property
     * @return Boolean 
     */
    public function getDeferredRender()
    {
    	return $this->getConfig("deferredrender");
    }

    /**
     * Sets the value of ExtJS deferredRender property
     * @param Boolean $value 
     */
    public function setDeferredRender($value)
    {
    	$this->setConfig("deferredrender",$value);
    }

    /**
     * Gets the value of ExtJS enableTabScroll property
     * @return Boolean 
     */
    public function getEnableTabScroll()
    {
    	return $this->getConfig("enabletabscroll");
    }

    /**
     * Sets the value of ExtJS enableTabScroll property
     * @param Boolean $value 
     */
    public function setEnableTabScroll($value)
    {
    	$this->setConfig("enabletabscroll",$value);
    }

    /**
     * Gets the value of ExtJS layoutOnTabChange property
     * @return Boolean 
     */
    public function getLayoutOnTabChange()
    {
    	return $this->getConfig("layoutontabchange");
    }

    /**
     * Sets the value of ExtJS layoutOnTabChange property
     * @param Boolean $value 
     */
    public function setLayoutOnTabChange($value)
    {
    	$this->setConfig("layoutontabchange",$value);
    }

    /**
     * Gets the value of ExtJS minTabWidth property
     * @return Number 
     */
    public function getMinTabWidth()
    {
    	return $this->getConfig("mintabwidth");
    }

    /**
     * Sets the value of ExtJS minTabWidth property
     * @param Number $value 
     */
    public function setMinTabWidth($value)
    {
    	$this->setConfig("mintabwidth",$value);
    }

    /**
     * Gets the value of ExtJS plain property
     * @return Boolean 
     */
    public function getPlain()
    {
    	return $this->getConfig("plain");
    }

    /**
     * Sets the value of ExtJS plain property
     * @param Boolean $value 
     */
    public function setPlain($value)
    {
    	$this->setConfig("plain",$value);
    }

    /**
     * Gets the value of ExtJS resizeTabs property
     * @return Boolean 
     */
    public function getResizeTabs()
    {
    	return $this->getConfig("resizetabs");
    }

    /**
     * Sets the value of ExtJS resizeTabs property
     * @param Boolean $value 
     */
    public function setResizeTabs($value)
    {
    	$this->setConfig("resizetabs",$value);
    }

    /**
     * Gets the value of ExtJS scrollDuration property
     * @return Float 
     */
    public function getScrollDuration()
    {
    	return $this->getConfig("scrollduration");
    }

    /**
     * Sets the value of ExtJS scrollDuration property
     * @param Float $value 
     */
    public function setScrollDuration($value)
    {
    	$this->setConfig("scrollduration",$value);
    }

    /**
     * Gets the value of ExtJS scrollIncrement property
     * @return Number 
     */
    public function getScrollIncrement()
    {
    	return $this->getConfig("scrollincrement");
    }

    /**
     * Sets the value of ExtJS scrollIncrement property
     * @param Number $value 
     */
    public function setScrollIncrement($value)
    {
    	$this->setConfig("scrollincrement",$value);
    }

    /**
     * Gets the value of ExtJS scrollRepeatInterval property
     * @return Number 
     */
    public function getScrollRepeatInterval()
    {
    	return $this->getConfig("scrollrepeatinterval");
    }

    /**
     * Sets the value of ExtJS scrollRepeatInterval property
     * @param Number $value 
     */
    public function setScrollRepeatInterval($value)
    {
    	$this->setConfig("scrollrepeatinterval",$value);
    }

    /**
     * Gets the value of ExtJS tabCls property
     * @return String 
     */
    public function getTabCls()
    {
    	return $this->getConfig("tabcls");
    }

    /**
     * Sets the value of ExtJS tabCls property
     * @param String $value 
     */
    public function setTabCls($value)
    {
    	$this->setConfig("tabcls",$value);
    }

    /**
     * Gets the value of ExtJS tabMargin property
     * @return Number 
     */
    public function getTabMargin()
    {
    	return $this->getConfig("tabmargin");
    }

    /**
     * Sets the value of ExtJS tabMargin property
     * @param Number $value 
     */
    public function setTabMargin($value)
    {
    	$this->setConfig("tabmargin",$value);
    }

    /**
     * Gets the value of ExtJS tabPosition property
     * @return String 
     */
    public function getTabPosition()
    {
    	return $this->getConfig("tabposition");
    }

    /**
     * Sets the value of ExtJS tabPosition property
     * @param String $value 
     */
    public function setTabPosition($value)
    {
    	$this->setConfig("tabposition",$value);
    }

    /**
     * Gets the value of ExtJS tabWidth property
     * @return Number 
     */
    public function getTabWidth()
    {
    	return $this->getConfig("tabwidth");
    }

    /**
     * Sets the value of ExtJS tabWidth property
     * @param Number $value 
     */
    public function setTabWidth($value)
    {
    	$this->setConfig("tabwidth",$value);
    }

    /**
     * Gets the value of ExtJS wheelIncrement property
     * @return Number 
     */
    public function getWheelIncrement()
    {
    	return $this->getConfig("wheelincrement");
    }

    /**
     * Sets the value of ExtJS wheelIncrement property
     * @param Number $value 
     */
    public function setWheelIncrement($value)
    {
    	$this->setConfig("wheelincrement",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'activetab' => 'activeTab',
            'animscroll' => 'animScroll',
            'autotabselector' => 'autoTabSelector',
            'autotabs' => 'autoTabs',
            'basecls' => 'baseCls',
            'deferredrender' => 'deferredRender',
            'enabletabscroll' => 'enableTabScroll',
            'layoutontabchange' => 'layoutOnTabChange',
            'mintabwidth' => 'minTabWidth',
            'resizetabs' => 'resizeTabs',
            'scrollduration' => 'scrollDuration',
            'scrollincrement' => 'scrollIncrement',
            'scrollrepeatinterval' => 'scrollRepeatInterval',
            'tabcls' => 'tabCls',
            'tabmargin' => 'tabMargin',
            'tabposition' => 'tabPosition',
            'tabwidth' => 'tabWidth',
            'wheelincrement' => 'wheelIncrement'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'beforetabchange' => array('sender','newTab','currentTab'),
            'contextmenu' => array('sender','tab','e'),
            'tabchange' => array('sender','tab')
        ));


        $this->proptags = array_merge($this->proptags,array(
            'tabs' => true
        ));
        $this->setXType('tabpanel');
        $this->setXClass('Ext.TabPanel');
    }    
}
?>